package com.jquest.misc;

import org.newdawn.slick.Image;

import java.util.HashMap;

/**
 * Created by IntelliJ IDEA.
 * User: Johan
 * Date: 2009-dec-11
 * Time: 17:58:25
 * To change this template use File | Settings | File Templates.
 */
public class ResourceMap {
    private static HashMap<String, Object> resources;

    public static void add(String key, Object value) {
        resources.put(key, value);
    }

    public static Image getImage(String key) {
        return (Image) resources.get(key);
    }

    

    public static String getString(String key) {
        return (String) resources.get(key);
    }

    public static void remove(String key) {
        resources.remove(key);
    }

    static {
        resources = new HashMap<String, Object>();
    }

}
